package org.etherframework.tests.features.mediator.mediators
{
	import flash.display.DisplayObject;
	
	import org.etherframework.common.IStatefulDestroyable;
	import org.etherframework.mediator.Mediator;
	
	public class AutomaticallyCreatedViewMediator extends Mediator implements IStatefulDestroyable
	{
		public var mediatorView:DisplayObject;
		
		private var _destroyed:Boolean;
		
		override public function initiate():void
		{
			mediatorView = view;
		}
		
		public function destroy():void
		{
		}
		
		public function get destroyed():Boolean { return _destroyed; }
		public function set destroyed(value:Boolean):void { _destroyed = value; }
		
	}
}